package com.studyinghome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.studyinghome.entity.OrderItem;
import com.studyinghome.mapper.OrderItemMapper;
import com.studyinghome.service.OrderItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Leslie
 * @create 2023-02-10 14:48
 **/
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {


    @Override
    public List<OrderItem> listByOrderNo(String orderNo) {
        return this.lambdaQuery().eq(OrderItem::getOrderNo, orderNo).list();
    }
}
